<script>
export default {
  name: 'Nav',
  methods: {
    /* pdf预览 */
    iframePdf () {
      this.$router.push({ name: 'IframePdf' })
    },
    /* 复制粘贴功能 */
    clipboard () {
      this.$router.push({ name: 'Clipboard' })
    }
  },
  render () {
    return <div class='nav'>
      <a-list grid={{ gutter: 16, column: 4 }} >
        <a-list-item>
          <a-card title="pdf 预览">
            <a-button onClick={this.iframePdf}>iframe</a-button>
          </a-card>
        </a-list-item>
        <a-list-item>
          <a-card title="复制粘贴功能">
            <a-button onClick={this.clipboard}>clipboard</a-button>
          </a-card>
        </a-list-item>
      </a-list>
    </div>
  }
}
</script>
